package com.chuantou.yuba.api.to;

import com.google.gson.annotations.SerializedName;

import android.os.Parcel;
import android.os.Parcelable;

public class FishingTO implements Parcelable {
	@SerializedName("id")
	private long id;
	// 帐号ID
	@SerializedName("uid")
	private long uid;
	// 约钓内容
	@SerializedName("content")
	private String content;
	// 约钓开始时间,单位秒
	@SerializedName("start_dateline")
	private long startTime;
	// 约钓结束时间,单位秒
	@SerializedName("end_dateline")
	private long endTime;
	// 省份ID
	@SerializedName("state_id")
	private String stateId;
	// 省份名称
	@SerializedName("state")
	private String stateName;
	// 城市ID
	@SerializedName("city_id")
	private String cityId;
	// 城市名称
	@SerializedName("city")
	private String cityName;
	// 最大人数
	@SerializedName("max_people")
	private int maxPeople;
	// 钓鱼地点
	@SerializedName("address")
	private String address;
	// 昵称
	@SerializedName("username")
	private String username;
	// 人均费用
	@SerializedName("fee")
	private int cost;
	// 发布约钓时间
	@SerializedName("dateline")
	private long publishTime;
	// 已参加人数
	@SerializedName("joined_total")
	private int joinedCount;
	// 性别，1女2男
	@SerializedName("sex")
	private int sex;
	// 生日
	@SerializedName("birthday")
	private String birthday;
	// 头像
	@SerializedName("avatar")
	private String avatar;
	// 经纬度
	@SerializedName("location")
	private String location;

	public FishingTO() {
	}

	public FishingTO(Parcel source) {
		this.id = source.readLong();
		this.uid = source.readLong();
		this.content = source.readString();
		this.startTime = source.readLong();
		this.endTime = source.readLong();
		this.stateId = source.readString();
		this.stateName = source.readString();
		this.cityId = source.readString();
		this.cityName = source.readString();
		this.maxPeople = source.readInt();
		this.address = source.readString();
		this.username = source.readString();
		this.cost = source.readInt();
		this.publishTime = source.readLong();
		this.joinedCount = source.readInt();
		this.sex = source.readInt();
		this.birthday = source.readString();
		this.avatar = source.readString();
		this.location = source.readString();
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeLong(this.id);
		dest.writeLong(this.uid);
		dest.writeString(this.content);
		dest.writeLong(this.startTime);
		dest.writeLong(this.endTime);
		dest.writeString(this.stateId);
		dest.writeString(this.stateName);
		dest.writeString(this.cityId);
		dest.writeString(this.cityName);
		dest.writeInt(this.maxPeople);
		dest.writeString(this.address);
		dest.writeString(this.username);
		dest.writeInt(this.cost);
		dest.writeLong(this.publishTime);
		dest.writeInt(this.joinedCount);
		dest.writeInt(this.sex);
		dest.writeString(this.birthday);
		dest.writeString(this.avatar);
		dest.writeString(this.location);
	}

	public static final Creator<FishingTO> CREATOR = new Creator<FishingTO>() {

		@Override
		public FishingTO[] newArray(int size) {
			return new FishingTO[size];
		}

		@Override
		public FishingTO createFromParcel(Parcel source) {
			return new FishingTO(source);
		}
	};

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getUid() {
		return uid;
	}

	public void setUid(long uid) {
		this.uid = uid;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public long getStartTime() {
		return startTime;
	}

	public void setStartTime(long startTime) {
		this.startTime = startTime;
	}

	public long getEndTime() {
		return endTime;
	}

	public void setEndTime(long endTime) {
		this.endTime = endTime;
	}

	public String getStateId() {
		return stateId;
	}

	public void setStateId(String stateId) {
		this.stateId = stateId;
	}

	public String getStateName() {
		return stateName;
	}

	public void setStateName(String stateName) {
		this.stateName = stateName;
	}

	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public int getMaxPeople() {
		return maxPeople;
	}

	public void setMaxPeople(int maxPeople) {
		this.maxPeople = maxPeople;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public int getCost() {
		return cost;
	}

	public void setCost(int cost) {
		this.cost = cost;
	}

	public long getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(long publishTime) {
		this.publishTime = publishTime;
	}

	public int getJoinedCount() {
		return joinedCount;
	}

	public void setJoinedCount(int joinedCount) {
		this.joinedCount = joinedCount;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

}
